package git.matrix.mapper;

import git.matrix.pojo.Provider;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface ProviderMapper {
    //增加供应商
    public int addProvider(Provider provider);


    /**
     * 通过供应商  名称+code
     * @param queryProCode
     * @param queryProName
     * @return
     */
    List<Provider> getProByNameCode(@Param("queryProCode")String queryProCode,
                                    @Param("queryProName")String queryProName);
    /**
     * 通过供应商  id  删除
     * @param proid
     * @return
     */
    public int proDelete(@Param("proid")int proid);

}
